package com.vids.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenhongbang
 * @since 2024-05-31
 */
@TableName("t_image_compared_detail")
public class ImageComparedDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 图片采集摄像头ID
     */
    private String apeId;

    /**
     * 图片采集摄像头IP地址
     */
    private String apeIpAddr;

    /**
     * 视图库订阅图片
     */
    private String viidImage;

    /**
     * 摄像头采集图片
     */
    private String apeImage;



    /**
     * 视图库图片产生时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime viidImageCreateTime;

    /**
     * 摄像头图片产生时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime apeImageCreateTime;

    /**
     * 图片类型
     */
    private Integer imageType;

    /**
     * 图片比较时间段0~23
     */
    private Integer comparedHour;

    /**
     * 比较结果, 0，表示相同，1，表示不同，2, 表示Viid中存在，ape中不存在，3，表示viid中不存在，ape中存在
     */
    private Integer comparedResult;

    /**
     * viid图片URL
     */
    @TableField(exist = false)
    private String comparedResultStr;

    public String getComparedResultStr() {
        return comparedResultStr;
    }

    public void setComparedResultStr(String comparedResultStr) {
        this.comparedResultStr = comparedResultStr;
    }
    /**
     * viid图片URL
     */
    @TableField(exist = false)
    private String viidImageUrl;

    public String getViidImageUrl() {
        return viidImageUrl;
    }

    public void setViidImageUrl(String viidImageUrl) {
        this.viidImageUrl = viidImageUrl;
    }


    /**
     * 图片URL
     */
    @TableField(exist = false)
    private String imageUrl;

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    /**
     * 图片类型字符串
     */
    @TableField(exist = false)
    private String imageTypeStr;

    public String getImageTypeStr() {
        return imageTypeStr;
    }

    public void setImageTypeStr(String imageTypeStr) {
        this.imageTypeStr = imageTypeStr;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getApeId() {
        return apeId;
    }

    public void setApeId(String apeId) {
        this.apeId = apeId;
    }

    public String getApeIpAddr() {
        return apeIpAddr;
    }

    public void setApeIpAddr(String apeIpAddr) {
        this.apeIpAddr = apeIpAddr;
    }

    public String getViidImage() {
        return viidImage;
    }

    public void setViidImage(String viidImage) {
        this.viidImage = viidImage;
    }

    public String getApeImage() {
        return apeImage;
    }

    public void setApeImage(String apeImage) {
        this.apeImage = apeImage;
    }

    public LocalDateTime getViidImageCreateTime() {
        return viidImageCreateTime;
    }

    public void setViidImageCreateTime(LocalDateTime viidImageCreateTime) {
        this.viidImageCreateTime = viidImageCreateTime;
    }

    public LocalDateTime getApeImageCreateTime() {
        return apeImageCreateTime;
    }

    public void setApeImageCreateTime(LocalDateTime apeImageCreateTime) {
        this.apeImageCreateTime = apeImageCreateTime;
    }

    public Integer getImageType() {
        return imageType;
    }

    public void setImageType(Integer imageType) {
        this.imageType = imageType;
    }

    public Integer getComparedHour() {
        return comparedHour;
    }

    public void setComparedHour(Integer comparedHour) {
        this.comparedHour = comparedHour;
    }

    public Integer getComparedResult() {
        return comparedResult;
    }

    public void setComparedResult(Integer comparedResult) {
        this.comparedResult = comparedResult;
    }

    @Override
    public String toString() {
        return "ImageComparedDetail{" +
            "id = " + id +
            ", apeId = " + apeId +
            ", apeIpAddr = " + apeIpAddr +
            ", viidImage = " + viidImage +
            ", apeImage = " + apeImage +
            ", viidImageCreateTime = " + viidImageCreateTime +
            ", apeImageCreateTime = " + apeImageCreateTime +
            ", imageType = " + imageType +
            ", comparedHour = " + comparedHour +
            ", comparedResult = " + comparedResult +
        "}";
    }
}
